package com.ruoyi.custservice.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户贷款返回信息实体
 *
 * @Author: xiao
 * @Date: 2021/7/3 19:25 下午
 */
@Data
public class LoanIouRsp {

    private String accountNumber;

    //申请时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal loanAmount;

    //客户全名
    private String applicant;

    //借款期数
    private Integer loanDuration;

    //单位
    private String unit;

    //还款金额
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal repaymentAmount;

    //还款时间
    private String repaymentTime;

    //剩余还款金额
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal principal;

    //总利息
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal interest;

    //借款状态
    private Integer loanStatus;

    //借款状态
    private String loanStatuss;

    //服务费
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal serviceFee;

    //滞纳金
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal penalty;

    //交易手续费（free）
    private String transationFree;


    //优惠券
    private String coupon;

    /**
     * 放款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal remainingRepayments;

    private String  newRepaymentDate;

    private String loanSerialNo;

    //剩余应还利息
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal  remainingInterest;
    //剩余应还服务费
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal  remainingServiceFee;
    //剩余应还本金
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal  remainingLoanPrincipal;
    //剩余应还滞纳金
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal  remainingLateFee;

}
